package com.hzsun.rocketmq.spring.consumer;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

/**
 * @Author: DingJl
 * @Date: 2022/1/22 16:13
 * @Version 1.0
 */
@Component
@RocketMQMessageListener(topic = "${rocketmq.consume.topic}",consumerGroup = "${rocketmq.consume.group}")
public class RocketMQListenerImpl implements RocketMQListener<String> {
    @Override
    public void onMessage(String s) {
        System.err.println(s);
    }
}
